package com.wanbang.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.wanbang.entities.GoodsType;
import com.wanbang.service.SearchGoodsTypeService;

@Controller
public class SearchGoodsTypeServiceController {
	
	@Autowired
	private SearchGoodsTypeService searchGoodsTypeService;

	@ResponseBody
	@RequestMapping(value="selectGoodsType",method=RequestMethod.GET)
	public List<GoodsType> selectGoodsType(){
		
		List<GoodsType> GoodsTypes = searchGoodsTypeService.selectGoodsType();
		
		return GoodsTypes;
	}

}
